import { lazy } from 'react';

const Home = lazy(() => import('./home'));
const User = lazy(() => import('./user'));

const routes = [
  {
    title: '首页',
    path: '/',
    exact: true,
    component: Home,
    name: 'home',
  },
  {
    title: '首页',
    path: '/user',
    exact: true,
    component: User,
    name: 'user',
  },
];

export default routes;
